<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>主单信息</span></div>
<div class="layui-card-body">
    <div id="deliveryView"></div>
    <div id="logistiscsView"></div>
</div>

<div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>明细信息</span></div>
<div class="layui-card-body" style="padding: 0px;">
    <table class="layui-hide" id="memberTab"></table>
</div>

<script type="text/html" id="deliveryViewTemp">
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">系统单号：</label><label class="fval">{{d.docNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">订单号：</label><label class="fval">{{d.impOrderNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">客户名称：</label><label class="fval">{{d.customerName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">运输日期：</label><label class="fval">{{d.transDate}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">送货方式：</label><label class="fval">{{d.receivingModeName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">发车时间：</label><label class="fval">{{removeNull(d.departureDate)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">签收时间：</label><label class="fval">{{removeNull(d.reachDate)}}</label></div>
        {{#if(d.receivingMode=='ThirdLogistics'){ }}
        <div class="layui-col-md3"><label class="fkey">物流单号：</label><label class="fval">{{removeNull(d.experssNo)}}</label></div>
        {{#}else{}}
        <div class="layui-col-md3"><label class="fkey">封条号：</label><label class="fval">{{removeNull(d.sealNo)}}</label></div>
        {{#}}}
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">运输供应商：</label><label class="fval">{{removeNull(d.transportSupplierName)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">运输工具：</label><label class="fval">{{removeNull(d.conveyanceNo)}} / {{removeNull(d.conveyanceNo2)}}</label></div>
        <div class="layui-col-md6"><label class="fkey">司机信息：</label><label class="fval">{{removeNull(d.driverInfo)}}</label></div>
    </div>
</script>
<script  type="text/html" id="logistiscsViewTemp">
    <div class="layui-row">
        <div class="layui-col-md12">
            <label class="fkey">送货信息：</label><label class="fval">
            {{#if(d.receivingMode=='ThirdLogistics'){ }}
            <span class="layui-badge">{{d.paymentDeliveryName}}</span> {{d.logisticsCompanyName}} {{removeNull(d.prescription)}}
            【{{d.deliveryCompanyName}}】 {{d.deliveryAddress}} ({{d.deliveryLinkPerson}} {{d.deliveryLinkTel}})
            {{#}else if(d.receivingMode=='SelfLifting'){ }}
            自提点 {{d.selfWareName}} {{removeNull(d.selfLinkPerson)}} {{removeNull(d.selfPersonId)}}
            {{#}else if(d.receivingMode=='HkThrough' || d.receivingMode=='SpecialCar'){ }}
            【{{d.deliveryCompanyName}}】 {{d.deliveryAddress}} ({{d.deliveryLinkPerson}} {{d.deliveryLinkTel}})
            {{#}}}
        </label></div>
    </div>
    </div>
    {{#if(d.receivingMode=='SelfLifting'){ }}
    <div class="layui-row"><div class="layui-col-md12"><label class="fkey">提货备注：</label><label class="fval">{{d.selfMemo}}</label></div></div>
    {{#}}}
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">送货备注：</label><label class="fval">{{d.receivingModeMemo}}</label></div>
    </div>
</script>